#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 3.3.22 5:04 PM
# @Author  : huanghe
# @Site    : 
# @File    : path_manager.py
# @Software: PyCharm
import os


class Path:
    def __init__(self):
        self.base_path = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]

    # 获取配置文件的绝对路径
    def get_config_path(self, filename):
        return os.path.join(self.base_path, 'config', filename)

    # 获取driver的绝对路径
    def get_driver_path(self):
        return os.path.join(self.base_path, 'driver')

    # 获取文件（失败截图）路径
    def get_picture_path(self):
        return os.path.join(self.base_path, 'file')

    # 获取case路径
    def get_case_path(self):
        return os.path.join(self.base_path, 'src', 'case')

    # 获取case结果路径
    def get_result_path(self):
        return os.path.join(self.base_path,'result')

    # 获取report路径
    def get_report_path(self):
        return os.path.join(self.base_path, 'report')


if __name__ == '__main__':
    print(Path().get_case_path())
